package com.zretc.file.dao;

import com.zretc.api.pojo.File;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.ArrayList;

public interface FileMapper {

    File getFileById(Integer resourceId);

    void addFile(File file);

    void removeFile(File file);

    ArrayList<File> getAllFile();

    ArrayList<File> getAllFileByName(@Param("resourceName") String resourceName);

    ArrayList<File> getMyFile(Integer uploaderId);

    ArrayList<File> getMyFileByName(@Param("uploaderId") Integer uploaderId, @Param("resourceName") String resourceName);
}
